<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
//include("../include/function.php");
dbconnect();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
$id=$_GET['id'];

$del = deletequery("project","projectid",$id);
/* $delete = "DELETE FROM project WHERE projectid='$id'";
$de = mysql_query($delete); */
$del1= deletequery("userclient","projectid",$id);
/* $del ="DELETE FROM userclient WHERE projectid='$id'";
$d = mysql_query($del); */

header("Location: index.php?management=project");
//print_r($delete);
}
else
{
header("Location: login.php");
}
?>

